/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package objectcreate;

/**
 *
 * @author Student
 */
public class Platformer extends Videogame{
    public int lives;
        
    Platformer()
    {
    lives=5;
    }

    /**
     * @return the lives
     */
    public int getLives() {
        return lives;
    }

    /**
     * @param lives the lives to set
     */
    public void setLives(int lives) {
        this.lives = lives;
    }
    public String printgame() {
        return name + " \nPlatformer \nRated: " + rating + " \nYou start with " + lives + " lives";
    }
    public String export()
    {
        return "Platformer," + name + "," + rating + "," + lives;
    }
}
